import http from '@/utils/request'
import{IUserData} from '@/interface/user/user'
import{IApiResponse} from '@/interface/user/userRequests'
import {useUserStore} from '@/store/useUserStore'
// 获取用户信息
export const getInfo = () : Promise<IUserData> =>{
    return http.get('/personal/getInfo')
}
// 获取路由信息
export const getRouters = (): Promise<IApiResponse>  =>{
  let rolePerm =useUserStore().rolePerm
  return http.get(`/personal/getRouters/${rolePerm}`)
}
